package com.example.xiaomi.Model.entity;

import java.math.BigDecimal;

public class GodsEntity {
    String gname;
    BigDecimal gprice;
    String gdetails;
    String ghelves;
    String is_sort;

    //需要链接的表字段 1
    int sid;
    String sname;
    // 2
    String ping;

    public String toString() {
        return "[" + gname +
                "," + gprice +
                "," + gdetails +
                "," + ghelves +
                "," + is_sort +
                "," + ping +
                ']';
    }

    public GodsEntity(String gname, BigDecimal gprice, String gdetails, String ghelves, String is_sort, int sid, String sname, String ping) {
        this.gname = gname;
        this.gprice = gprice;
        this.gdetails = gdetails;
        this.ghelves = ghelves;
        this.is_sort = is_sort;
        this.sid = sid;
        this.sname = sname;
        this.ping = ping;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public BigDecimal getGprice() {
        return gprice;
    }

    public void setGprice(BigDecimal gprice) {
        this.gprice = gprice;
    }

    public String getGdetails() {
        return gdetails;
    }

    public void setGdetails(String gdetails) {
        this.gdetails = gdetails;
    }

    public String getGhelves() {
        return ghelves;
    }

    public void setGhelves(String ghelves) {
        this.ghelves = ghelves;
    }

    public String getIs_sort() {
        return is_sort;
    }

    public void setIs_sort(String is_sort) {
        this.is_sort = is_sort;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getPing() {
        return ping;
    }

    public void setPing(String ping) {
        this.ping = ping;
    }
}
